<%@ include file="/WEB-INF/pages/taglibs.jsp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
</head>

<body>
	<div class="container" style="margin-top: 16px;">
		<div class="col-md-12">
			<div class="form-group">
				<label class="col-md-2 control-label control-required"><fmt:message key="report.custom.data.source" bundle="${i18n_report}" /></label>
				<div class="col-md-7">
					<select name="report.cacheid" class="form-control report-custom-data-source" data-select2-dropdown-parent="#edit-custom-report-infopanel" onchange="changeDataSource()">
						<option value=""><fmt:message key="report.custom.data.source.tip" bundle="${i18n_report}" /></option>
						<c:forEach items="${caches }" var="cache">
						<option value="${cache.uuid }" data-start="${cache.enable}" data-desc="${cache.description }"
							<c:if test="${selectedCache != null && selectedCache.uuid == cache.uuid }">selected</c:if> >${cache.title }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label"><fmt:message key="report.custom.data.source.desc" bundle="${i18n_report}" /></label>
				<div class="col-md-10">
					<p id="span_source_desc" class="form-control-static">
					<c:choose>
						<c:when test="${selectedCache != null }">${selectedCache.description }</c:when>
						<c:otherwise><fmt:message key="report.custom.data.source.tip" bundle="${i18n_report}" /></c:otherwise>
					</c:choose>
					</p>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label"><fmt:message key="report.custom.data.source.filter" bundle="${i18n_report}" /></label>
				<div class="col-md-7">
					<div id="filter-container"><p class="form-control-static"><fmt:message key="report.custom.data.source.tip" bundle="${i18n_report}" /></p></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>